$(function () {
	
	if (curruser) {
		layer.alert("您没权限访问当前页面！");
	} else {
		var onAfterCancel = function (layero, index) {
			setTimeout(() => {
				tiosite_show_login(3, "<strong>您正在访问的页面，需要登录，谢谢！</strong>", onAfterCancel);
			}, 5000);
		};
		tiosite_show_login(3, "<strong>您正在访问的页面，需要登录，谢谢！</strong>", onAfterCancel);
	}
});
